<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmCuentaABM.aspx.vb" Inherits="TGB.FrmCuentaABM" 
    title="Cuentas Bancarias" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="DIV1" style="width: 100%; height: 18px; text-align: left; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Cuentas Bancarias" Font-Underline="False" Height="8px" Width="208px" Font-Names="Calibri"></asp:Label>
        </div><hr /> 
    <div style="width: 99%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 696px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 49px; height: 14px">
            </td>
            <td align="right" style="width: 15%; height: 14px;">
                <asp:Label ID="Label1" runat="server" Text="Banco" Font-Bold="True"></asp:Label></td>
            <td style="width: 1%; height: 14px;" align="left" ><asp:DropDownList ID="CboBanco" runat="server" CssClass="campotxt" Width="336px" AppendDataBoundItems="True" TabIndex="1" Font-Bold="True">
                <asp:ListItem Value="-1">Ninguno</asp:ListItem>
            </asp:DropDownList></td>
            <td align="left" style="width: 96px; height: 14px">
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 49px; height: 21px">
            </td>
            <td align="right" style="width: 15%; height: 21px;">
                <asp:Label ID="Label6" runat="server" Text="Tipo de Cuenta" Font-Bold="True"></asp:Label></td>
            <td style="width: 1%; height: 21px;" align="left" ><asp:DropDownList ID="CboCuenta" runat="server" CssClass="campotxt" Width="152px" AppendDataBoundItems="True" TabIndex="2" AutoPostBack="True" Font-Bold="True">
                <asp:ListItem Value="-1">Ninguno</asp:ListItem>
                <asp:ListItem>Caja de Ahorro</asp:ListItem>
                <asp:ListItem>Cuenta Corriente</asp:ListItem>
            </asp:DropDownList></td>
            <td align="left" style="width: 96px; height: 21px">
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 49px; height: 20px">
            </td>
            <td align="right" style="width: 15%; height: 20px">
                <asp:Label ID="Label2" runat="server" Text="Numero de Cuenta" Width="112px" Font-Bold="True"></asp:Label></td>
            <td align="left" style="width: 71%; height: 20px">
                <asp:TextBox ID="TxtNumeroCuenta" runat="server" CssClass="campotxt" MaxLength="4"
                    TabIndex="3" Width="32px" Font-Bold="True" ToolTip="Banco">0000</asp:TextBox>
                /
                <asp:TextBox ID="TxtNumero2" runat="server" CssClass="campotxt" Font-Bold="True"
                    MaxLength="4" TabIndex="3" ToolTip="Banco" Width="32px">0000</asp:TextBox>
                /<asp:TextBox ID="TxtNumero3" runat="server" CssClass="campotxt" Font-Bold="True"
                    MaxLength="2" TabIndex="3" ToolTip="Banco" Width="16px">00</asp:TextBox>
                /<asp:TextBox
                        ID="TxtNumero4" runat="server" CssClass="campotxt" Font-Bold="True" MaxLength="7"
                        TabIndex="3" ToolTip="Banco" Width="48px">0000000</asp:TextBox>
            </td>
            <td align="left" style="width: 1%; height: 20px">
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 49px; height: 20px">
            </td>
            <td align="right" style="width: 15%; height: 20px">
                <asp:Label ID="Label3" runat="server" Text="Chequera" Font-Bold="True"></asp:Label></td>
            <td align="left" style="width: 1%; height: 20px">
                <asp:DropDownList ID="CboChequera" runat="server" CssClass="campotxt" Width="104px" AppendDataBoundItems="True" TabIndex="7" Font-Bold="True">
                <asp:ListItem Value="-1">Ninguno</asp:ListItem>
                <asp:ListItem>Si</asp:ListItem>
                <asp:ListItem>No</asp:ListItem>
            </asp:DropDownList></td>
            <td align="left" style="width: 96px; height: 20px">
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 49px; height: 20px">
            </td>
            <td align="right" colspan="3" style="height: 20px">
                <asp:RangeValidator ID="RangeValidator4" runat="server" ControlToValidate="TxtNumeroCuenta"
                    Display="Dynamic" ErrorMessage="Cod Banco Incorrecto" MaximumValue="9999" MinimumValue="1"
                    Type="Integer" ValidationGroup="Guardar" CssClass="LabelErrorSmall">Cod Banco Incorrecto</asp:RangeValidator>
                <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="TxtNumero2"
                    Display="Dynamic" ErrorMessage="RangeValidator" MaximumValue="9999" MinimumValue="1"
                    Type="Integer" ValidationGroup="Guardar" CssClass="LabelErrorSmall">Sucursal Incorrecta</asp:RangeValidator>
                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtNumero3"
                    Display="Dynamic" ErrorMessage="Numero Control" MaximumValue="99" MinimumValue="1"
                    Type="Integer" ValidationGroup="Guardar" CssClass="LabelErrorSmall">Numero Control</asp:RangeValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtNumero4"
                    Display="Dynamic" ErrorMessage="Numero Cuenta" MaximumValue="9999999" MinimumValue="1"
                    Type="Integer" ValidationGroup="Guardar" Visible="False" CssClass="LabelErrorSmall">Numero Cuenta</asp:RangeValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 49px; height: 20px">
            </td>
            <td align="right" style="width: 15%; height: 20px">
            </td>
            <td align="left" colspan="2" style="height: 20px">
                <asp:Label ID="LblError" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                    ForeColor="Red" Width="376px" CssClass="LabelError"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" colspan="1" style="width: 49px; height: 21px">
            </td>
            <td align="right" colspan="3" style="height: 21px">
                &nbsp;<asp:LinkButton ID="LinkGuardar" runat="server" TabIndex="7" ValidationGroup="Guardar" CssClass="BotonLink">Guardar</asp:LinkButton> /
                <asp:LinkButton ID="LinkEliminar" runat="server" TabIndex="8" CssClass="BotonLink">Eliminar</asp:LinkButton> /
                <asp:LinkButton ID="LinkBuscar" runat="server" TabIndex="9" CssClass="BotonLink">Buscar</asp:LinkButton> /
                <asp:LinkButton ID="LinkCancelar" runat="server" TabIndex="10" CssClass="BotonLink">Cancelar</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="1" style="width: 49px;">
            </td>
            <td align="right" colspan="2">
                &nbsp;&nbsp;
                <table style="width: 272px">
                    <tr>
                        <td style="width: 4px">
                <asp:HiddenField ID="HFCodigoCuenta" runat="server" />
                        </td>
                        <td>
                <asp:HiddenField ID="HFCuenta" runat="server" />
                        </td>
                    </tr>
                </table>
                &nbsp;&nbsp;
            </td>
            <td align="right" colspan="1" style="width: 96px;">
            </td>
        </tr>
        
    </table>
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridCuenta" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC"
            BorderWidth="1px" CellPadding="4" CssClass="tabla"
            ForeColor="Black" GridLines="Horizontal" PageSize="15" Style="width: 100%" Width="3056px" BorderStyle="None" CellSpacing="1">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <Columns>
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        &nbsp;<asp:LinkButton ID="LinkSeleccionar" runat="server" CommandName="Select">Ver</asp:LinkButton>
                        <asp:HiddenField ID="HFCodigCuenta" runat="server" Value='<%# Bind("CodigoCuenta") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Numero de Cuenta">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("NumeroCuenta") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblCuenta" runat="server" Text='<%# Bind("NumeroCuenta") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Banco">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Denominacion") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblDenominacion" runat="server" Text='<%# Bind("Denominacion") %>'></asp:Label>&nbsp;
                        <asp:HiddenField ID="HFBanco" runat="server" Value='<%# Bind("CodigoBanco") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tipo">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("TipoCuenta") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblTipo" runat="server" Text='<%# Bind("TipoCuenta") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Chequera" HeaderText="Chequera" />
            </Columns>
            <SelectedRowStyle BackColor="#CC3333" ForeColor="White" Font-Bold="True" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </div>
</asp:Content>
